package com.mavenq.fly.commons.resp;

import lombok.Data;

@Data
public class ResponseObj<T> {

    public static final String SUC_MSG = "success";
    public static final Integer SUC_CODE = 200;
    public static final String FAIL_MSG = "failed";
    public static final Integer FAIL_CODE = 10000;

    private T data;
    private String message;
    private Integer code;

    public ResponseObj() {
    }

    public ResponseObj(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public ResponseObj(String message, Integer code, T data) {
        this.message = message;
        this.code = code;
        this.data = data;
    }

}
